import { WeaTools } from 'ecCom'

export const getDatas = params => {
	return WeaTools.callApi('/', 'GET', params);
}

export const getRoomList = params =>{
    return WeaTools.callApi('/api/meeting/room/getRoomList', 'POST', params);
}
export const getCondition = params =>{
    return WeaTools.callApi('/api/meeting/room/getCondition', 'POST', params);
}

export const add = params => {
    return WeaTools.callApi('/api/meeting/room/add', 'POST', params);
}

export const edit = params => {
    return WeaTools.callApi('/api/meeting/room/edit', 'POST', params);
}

export const lock = params =>{
    return WeaTools.callApi('/api/meeting/room/lock', 'POST', params);
}

export const unlock = params =>{
    return WeaTools.callApi('/api/meeting/room/unlock', 'POST', params);
}

export const del = params => {
    return WeaTools.callApi('/api/meeting/room/delete', 'POST', params);
}

export const getFields = params => {
    return WeaTools.callApi('/api/meeting/room/getFields', 'POST', params);
}

export const getShareList = params => {
    return WeaTools.callApi('/api/meeting/room/getShareList', 'POST', params);
}

export const getRoomShareFields = params => {
    return WeaTools.callApi('/api/meeting/room/getRoomShareFields', 'POST', params);
}

export const saveShare = params => {
    return WeaTools.callApi('/api/meeting/room/shareAdd', 'POST', params);
}

export const delShare = params => {
    return WeaTools.callApi('/api/meeting/room/shareDel', 'POST', params);
}
